// +build ignore

package main

import (
	"fmt"
	"io/ioutil"
	"log"
	"os"
)

func main() {
	path, err := os.Getwd()
	if err != nil {
		log.Fatal(err)
	}
	app := path + "/env/prod/conf/app.conf"
	file, err := ioutil.ReadFile(app)
	if err != nil {
		log.Fatal(err)
	}
	conf := path + "/conf/app.conf"
	err = ioutil.WriteFile(conf, file, os.ModePerm)
	if err != nil {
		log.Fatal(err)
	}
	fmt.Println("初始化成功")
}
